import random


class Game:
    top_score = 0

    def player_name(self, name):
        self.name= name

    @staticmethod
    def show_help():
        print(f"游戏帮助信息")

    def show_top_score(self):
        print( f"历史最高分是{Game.top_score}")

    def start_game(self):
        score_1 = random.randint(10, 100)
        print(f"本次游戏得分是{score_1}")
        if score_1 > Game.top_score:
            Game.top_score = score_1

if __name__ == '__main__':
    Game.show_help()
    info =Game()
    info.player_name('小明')
    info.start_game()
    info.show_top_score()
    info.start_game()
    info.show_top_score()





